package com.eos.control.action.emp;

import com.eos.control.action.base.AbstractBaseAction;

public class UpdateRoleAction extends AbstractBaseAction {
	private static final long serialVersionUID = 5653060526633806383L;
	private Long roleId;
	private String functionIdsStr;
	private String roleName;
	private String roleDesc;
	
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	public void setFunctionIdsStr(String functionIdsStr) {
		this.functionIdsStr = functionIdsStr;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}
	
	@Override
	public String execute() {
		try{
			if(roleId == null || roleId.longValue() <=0){
				statusCode = "300";
				message = "参数错误, 修改角色失败!";
			}else{
				
				statusCode = "200";
				message = "修改角色成功!";
			}
		}catch(Exception ex){
			ex.printStackTrace();
			statusCode = "300";
			message = "系统异常, 修改角色失败!";
		}
		return SUCCESS;
	}
}
